package com.luoye.lj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created with IntelliJ IDEA.
 *
 * @author dave_suwei
 * @date 2019/6/22 2:11
 */
@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping(value="/",method = RequestMethod.GET)
    public String index(Model model){
        model.addAttribute("title","首页");
        return "index";
    }
}
